<!DOCTYPE html>
<html>
  <head>
    <title>jQuery WeUI</title>
    <meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>

<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
"/>

<link rel="stylesheet" th:href="@{/dist/lib/weui.min.css}" />
<link rel="stylesheet" th:href="@{/dist/css/jquery-weui.min.css}" />
<link rel="stylesheet" th:href="@{/dist/demos/css/demos.css}"/>
<script type="text/javascript" th:src="@{/dist/lib/jquery-2.1.4.js}" ></script>
<script type="text/javascript" th:src="@{/dist/js/jquery-weui.js}" ></script>
<script type="text/javascript" th:src="@{/dist/lib/fastclick.js}" ></script>
<link rel="stylesheet" th:href="@{/adminltecss/userl.css}" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
   <style>
   	.mine-picsize{
   		height: 80px;
   	}
   	.main-hea{
   		padding-top: 5px;
   		margin-top: 8px;
   	}
   	.sec-cell{
   		padding: 20px;
   	}
   	.sec-set{
   		margin-top: 25px;
   	}
   	.gear-cs{
   		margin-left: 15px;
   	}
   		.cusmar{
  		margin-left: 40px;
  	}
  	.header-wai{
  		position: fixed;top:0px; height:60px;background-color: #363436;
  	}
   </style>
	<script type="text/javascript" th:inline="javascript">
	/*<![CDATA[*/
	
		  $(function(){
			var stat=/*[[${stat}]]*/;
			
		
		if(stat=="0"){
			/* alert("初次登陆，请修改密码");
			window.location.href="/WBizController/intoUpdatePassWord"; */
			$.confirm("是否修改初始化密码","确认修改",function(){
				window.location.href="/WBizController/intoUpdatePassWord";
			});
		
		}	
			
	});
		
	/*跳到更换图片的界面  */
	function changeDemo(){
			
		window.location.href=[[@{/WBizController/uploadFileDemo}]];
		
		
	}
	
	function messageDemo(){
		window.location.href=[[@{/WBizController/selectAllMessage}]];
	}
	var kk=1;
	function setDemo(){
		
		if(kk==1){
			$("#tuichu").css("display","block");
			
			kk=0;
			return true;
		}
			if(kk==0){
				$("#tuichu").css("display","none");
				kk=1;
				return true;
			}
	}
	
	function tuichuDemo(){
	$.confirm("确认退出系统吗？","确认退出",function(){
		window.location.href=[[@{/WBizController/outSystemDemo}]];
		});
		
		
	}
	/* 点击未登录 */
	function loginDemo(){
		window.location.href=[[@{/WBizController/loginDemo}]];
	}
	
	/* 点击详细信息 */
	function minuteDemo(){
		window.location.href=[[@{/WBizController/minuteInfo}]];
	}
	/*发布通知*/
	function insertDemo(){
		window.location.href=[[@{/WBizController/addNoticeInfo}]];
	}
	
	/*返回上一级  */
	function returnDemo(){
		window.history.back(-1); 
	}
	
	/*]]>*/
	</script>
  </head>
  <body ontouchstart  style="background-color: rgba(242,242,242)">
  
  	<div class="weui-tabbar header-wai" style="">
  		<a href="" class="weui-tabbar__item"  id="cusdow">
          <div class="weui-tabbar__icon"></div>
          <p class="weui-tabbar__label" style="font-size: 20px; color: white; line-height: 1px;">
          	<span class="fa fa-angle-left fa-2x" style="color: white; float: left;line-height: 10px;" onclick="returnDemo()"></span>
          	我的<span class="fa fa-angle-down fa-2x" style="color: white;float: right; margin-right: 10px;line-height: 10px; " id="down"></span></p>
        </a>
      </div>
  
  	<div class="weui-grids" style="margin-top:60px">
  		
  	<div class="weui-panel__bd main-hea" style="background-color: white;">
          <a href="javascript:void(0)" class="weui-media-box weui-media-box_appmsg">
            <div class="weui-media-box__hd" >
              <img class="weui-media-box__thumb mine-picsize" th:if="${session.EmployeeInfo!=null}" th:src="${session.EmployeeInfo.eheadimage}" alt=""/>
              <img class="weui-media-box__thumb mine-picsize" th:if="${session.EmployeeInfo==null}" th:src="@{/demos/images/avatar.jpg}" alt=""/>
            </div>
            <div class="weui-media-box__bd">
              <h4 class="weui-media-box__title" th:if="${session.EmployeeInfo!=null}" th:inline="text">[[${session.EmployeeInfo.ename}]]</h4>
              <p class="weui-media-box__desc" th:if="${session.EmployeeInfo!=null}" th:inline="text">工号:[[${session.EmployeeInfo.eusername}]]</p>
              <h4 class="weui-media-box__title" th:if="${session.EmployeeInfo==null}" onclick="loginDemo()">未登录，请登陆</h4>
              <!-- <div class="weui-cell__ft ">
              	<div class="fa fa-align-right"></div>
            </div> -->
            </div>
          </a>
          
        </div>
  			
    <div class="weui-cells">
          <a class="weui-cell weui-cell_access sec-cell" href="javascript:;">
            <div class="weui-cell__bd">
           
              <p class="fa fa-th" th:if="${session.EmployeeInfo!=null}"  onclick="changeDemo()"><span class=" gear-cs">
         			  更换头像  
              </span></p>
               <p class="fa fa-th" th:if="${session.EmployeeInfo==null}"><span class=" gear-cs">
         			  更换头像  
              </span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
           <a class="weui-cell weui-cell_access sec-cell" href="javascript:;">
            <div class="weui-cell__bd" th:if="${session.EmployeeInfo!=null}">
              <p  class="fa fa-th-list"><span class=" gear-cs" onclick="minuteDemo()">详细信息</span></p>
            </div>
             <div class="weui-cell__bd" th:if="${session.EmployeeInfo==null}">
              <p  class="fa fa-th-list"><span class=" gear-cs">详细信息</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
          <a class="weui-cell weui-cell_access sec-cell"  th:if="${session.EmployeeInfo!=null}" th:href="@{/WBizController/intoUpdatePassWord}">
            <div class="weui-cell__bd">
              <p  class="fa fa-th-list"><span class=" gear-cs">修改密码</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          <a class="weui-cell weui-cell_access sec-cell"  th:if="${session.EmployeeInfo==null}" >
            <div class="weui-cell__bd">
              <p  class="fa fa-th-list"><span class=" gear-cs">修改密码</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
          
          
          
          
          <a class="weui-cell weui-cell_access sec-cell" href="javascript:;">
            <div class="weui-cell__bd">
              <p class="fa fa-th-list" th:if="${session.EmployeeInfo!=null}" onclick="messageDemo()"><span class=" gear-cs">任务通知</span></p>
            	<p class="fa fa-th-list" th:if="${session.EmployeeInfo==null}"><span class=" gear-cs">任务通知</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
          <a class="weui-cell weui-cell_access sec-cell" href="javascript:;">
            <div class="weui-cell__bd" th:if="${session.EmployeeInfo!=null}">
            	
              <p class="fa fa-th-list" th:if="${session.EmployeeInfo.rank==1}" onclick="insertDemo()"><span class=" gear-cs">发布通知</span></p>
            	<p class="fa fa-th-list" th:if="${session.EmployeeInfo.rank!=1}"><span class=" gear-cs">发布通知</span></p>
            </div>
            
            <div class="weui-cell__bd" th:if="${session.EmployeeInfo==null}">
            	
              
            	<p class="fa fa-th-list"><span class=" gear-cs">发布通知</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
        </div>
  	<div class="weui-cells  sec-set">
  		<a class="weui-cell weui-cell_access" href="javascript:;">
            <div class="weui-cell__bd">
              <p class="fa fa-gear" th:if="${session.EmployeeInfo!=null}" onclick="setDemo()"><span class="gear-cs" style="width:100%">设置</span></p>
              <p class="fa fa-gear" th:if="${session.EmployeeInfo==null}"><span class="gear-cs" >设置</span></p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
  	</div>
  	<div class='demos-content-padded' style="display:none" id="tuichu">
       <!-- th:href="sc-mainpage.html" -->
       	 <a  href="javascript:tuichuDemo()" class="weui-btn weui-btn_primary" >退出登录</a>
       	</div>

       	 
       <br/>
      <br/>
  		<div class="weui-tabbar" style="position: fixed;">
        <a th:href="@{/WHeadInfoController/intoMainPage}" class="weui-tabbar__item weui-bar__item--on">
         <!--  <span class="weui-badge" style="position: absolute;top: -.4em;right: 1em;">8</span> -->
          <div class="weui-tabbar__icon">
            
            <img th:src="@{/demos/images/icon_nav_button.png}" />
          </div>
          <p class="weui-tabbar__label">首页</p>
        </a>
        
        
        <!--判断是否登陆  -->
        <a href="javascript:void(0)" class="weui-tabbar__item" th:if="${session.EmployeeInfo!=null}"> 
          <div class="weui-tabbar__icon">
            <img th:src="@{/demos/images/icon_nav_msg.png}" alt=""/>
          </div>
          <p class="weui-tabbar__label">菜单</p>
        </a>
        
        <a th:href="@{/WBizController/loginDemo}" class="weui-tabbar__item" th:if="${session.EmployeeInfo==null}"> 
          <div class="weui-tabbar__icon">
            <img th:src="@{/demos/images/icon_nav_msg.png}" alt=""/>
          </div>
          <p class="weui-tabbar__label">菜单</p>
        </a>

		<!--判断是否登陆  -->
        <a th:href="@{/selectAllCustomers}" class="weui-tabbar__item" th:if="${session.EmployeeInfo!=null}">

          <div class="weui-tabbar__icon">
            <img th:src="@{/demos/images/icon_nav_article.png}" alt=""/>
          </div>
          <p class="weui-tabbar__label">客户</p>
        </a>
         <a th:href="@{/WBizController/loginDemo}" class="weui-tabbar__item" th:if="${session.EmployeeInfo==null}">

          <div class="weui-tabbar__icon">
            <img th:src="@{/demos/images/icon_nav_article.png}" alt=""/>
          </div>
          <p class="weui-tabbar__label">客户</p>
        </a>
        
              
        
        <a th:href="@{/WBizController/HeadPage}" class="weui-tabbar__item">
          <div class="weui-tabbar__icon">
            <img th:src="@{/demos/images/icon_nav_cell.png}" alt=""/>
          </div>
          <p class="weui-tabbar__label">我的</p>
        </a>
      </div>
      
     
  	</body>
  </html>